package com.weiqiao.mall.service;

import com.weiqiao.mall.domain.PageDecorationEntity;
import com.weiqiao.mall.service.vo.PageDecorationVO;
import org.bson.conversions.Bson;
import org.springframework.data.domain.Pageable;
import org.springframework.http.ResponseEntity;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface IPageDecorationService {

    /**
     * 分页获取移动端页面列表
     *
     * @param pageDecorationVO
     * @return
     */
    Map getPageList(PageDecorationVO pageDecorationVO);

    /**
     * 删除移动端页面
     *
     * @param pageDecorationVO
     * @return
     */
    boolean deletePage(PageDecorationVO pageDecorationVO);

    /**
     * 查询单个
     *
     * @param filter
     * @return
     */
    PageDecorationEntity findOne(Bson filter);

    /**
     * 新增、编辑页面
     *
     * @param pageDecorationEntity
     * @return
     */
    boolean updatePage(PageDecorationEntity pageDecorationEntity);


    /**
     * 获取页面装修首页列表
     *
     * @param request
     * @return
     */
    ResponseEntity getDecorationList(HttpServletRequest request, Pageable pageable);

    /**
     * 获取页面装修-装修详情列表页
     *
     * @param request
     * @return
     */
    ResponseEntity getDecorationDetail(HttpServletRequest request);

    /**
     * 批量发布
     *
     * @param request
     * @return
     */
    ResponseEntity saveDecorationDetail(HttpServletRequest request);
}
